
aux_source_directory(./ SRC_LIST)
aux_source_directory(./redis SRC_LIST_REDIS)
aux_source_directory(./rpcclient SRC_LIST_RPCCLIENT)
aux_source_directory(./rpcserver SRC_LIST_RPCSERVER)
aux_source_directory(./proto SRC_LIST_PROTO)
add_library(tinyrpc_rpc ${SRC_LIST}  ${SRC_LIST_REDIS} ${SRC_LIST_RPCCLIENT} ${SRC_LIST_RPCSERVER} ${SRC_LIST_PROTO})
target_link_libraries(tinyrpc_rpc tinyrpc_net tinyrpc hiredis)